package edu.udo.sopra10.chaturaji.entities.coordinates;

/**
 * A piece's movement on a board. Note that the coordinates may be {@code < 0},
 * although the maximum supported range for all x- and y-coordinates is
 * {@code [-7, 7]}, since larger steps would move a figure "off the board".
 * 
 * @author Simon Dierl
 */
public class Movement extends BoundedCoordinate {
	/**
	 * The lowest allowable coordinate value.
	 */
	private static final byte LOWER_BOUND = -7;

	/**
	 * The highest allowable coordinate value.
	 */
	private static final byte UPPER_BOUND = 7;

	/**
	 * Create a new movement coordinate set with the specified values.
	 * 
	 * @param x
	 *            the x-shift of the movement.
	 * @param y
	 *            the y-shift of the movement.
	 */
	public Movement(final byte x, final byte y) {
		super(LOWER_BOUND, UPPER_BOUND, x, y);
	}
}
